<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <!-- <li class="active"><a href="{:url('AdminCategory/index')}">分类管理</a></li>-->
        <li><a href="#">预约信息展示</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('TechAdmin/liuyansearchs')}">
        留言时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="留言人名称..." width="400px">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('TechAdmin/liuyan')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form" action="">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>留言人名称</th>
                <th>留言内容</th>
                <th>回复内容</th>
                <th>留言时间</th>
                <th>回复时间</th>
                <th width="180">操作</th>
            </tr>
            </thead>
            <tbody>
            <noempty name="res">
                <foreach name="res" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>
                            {$vo.name}
                        </td>
                        <td>
                            {$vo.content}
                        </td>
                        <td>
                            {$vo.recontent}
                        </td>
                        <td>
                            {:date('Y-m-d H:i:s',$vo.dottime)}
                        </td>
                        <td>
                            <if condition = '$vo.redottime!=0'>
                                {:date('Y-m-d H:i:s',$vo.redottime)}
                            </if>
                        </td>
                        <td>
                            <a href="{:url('TechAdmin/huifuliuyan',array('id'=>$vo['id']))}" class="js-ajax-submit">回复</a>
                            <a href="{:url('TechAdmin/deleteliuyan',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
                        </td>
                </foreach>
            </noempty>
            </tbody>
        </table>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>